package com.elasticsearchtemplate.dao;

import com.elasticsearchtemplate.entity.Emp;

import java.util.List;

public interface EmpElasticTemplateDao {

     void createIndexAndMapping(String indexName,String mappingJson);

     void insertDocument(String indexName,Emp emp);

     List<Emp> findAllByName(String indexName,String name);
}
